<?php

namespace App\Entities;

use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;

class PatientType extends Model implements Transformable
{
    use TransformableTrait;

    protected $fillable = ['deportment_id', 'name'];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function deportment(){
        return $this->hasOne('App\Entities\Deportment', 'id', 'deportment_id');
    }
}
